package com.example.d6_homework.homework04;

/**
 * 订单项类
 */
public class ProductItem {
    // 订单项id
    private int productItemId;
    // 订单项编号
    private int productItemNumber;
    // 商品编号
    private int productNumber;
    // 商品名称
    private String productName;
    // 商品价格
    private double price;

    public ProductItem() {
    }

    public ProductItem(int productItemId, int productItemNumber, int productNumber, String productName, double price) {
        this.productItemId = productItemId;
        this.productItemNumber = productItemNumber;
        this.productNumber = productNumber;
        this.productName = productName;
        this.price = price;
    }

    public int getProductItemId() {
        return productItemId;
    }

    public void setProductItemId(int productItemId) {
        this.productItemId = productItemId;
    }

    public int getProductItemNumber() {
        return productItemNumber;
    }

    public void setProductItemNumber(int productItemNumber) {
        this.productItemNumber = productItemNumber;
    }

    public int getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(int productNumber) {
        this.productNumber = productNumber;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return productItemId +
                "," + productItemNumber +
                "," + productNumber +
                "," + productName +
                ", " + price
                ;
    }
}
